package com.shinbada.modules.sys.entity;

import com.shinbada.core.persistence.DataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 系统安全配置Entity
 *
 * @author initcap
 * @date 2020/10/15 16:33
 */
@Data
@ApiModel("系统安全配置")
public class SysConfig extends DataEntity<SysConfig> {

    public static final String VIEW_PASSWORD = "******";
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("产品名称")
    private String productName;

    @ApiModelProperty("允许多登录1，不允许0")
    private String multiAccountLogin;

    @ApiModelProperty("后登陆踢出先登录1，已经登陆禁止再登陆2.")
    private String singleLoginType;

    @ApiModelProperty("开启初始密码强制修改 true false")
    private String firstLoginChangePassword;

    @ApiModelProperty("开启强密码验证 true false")
    private String strongPassword;

    @ApiModelProperty("连续【】次密码错误，锁定用户账号")
    private Integer errInputPasswordTimes;

    @ApiModelProperty("设置默认初始密码")
    private String defaultPassword;

    @ApiModelProperty("密码强制更换周期（天）【-1不强制】")
    private Integer passwordChangePeriod;

    @ApiModelProperty("登录页地址")
    private String loginPath;

    private String administratorCompanyId;

    private String administratorPassword;


    public SysConfig() {
        super();
    }

    public SysConfig(String id) {
        super(id);
    }

}